<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>user list</title>
</head>
<body>
	<div>
		<a href="list" ><span>show</span></a>
		<a href="add" ><span>add</span></a>
	</div>
	<table>
		<thead>
			<tr>
				<th>no</th>
				<th>name</th>
				<th>pswd</th>
				<th>opt</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${users.data}" var="user" varStatus="i">
				<tr style="text-align: center;">
					<td>${i.count }</td>
					<td>${user.name }</td>
					<td>${user.password }</td>
					<td><a href="${user.id }/update">update</a>&nbsp;|&nbsp;
						<a href="${user.id }/delete">delete</a></td>
				</tr>
			</c:forEach>
			<tr>
				<td colspan="4" style="text-align:center; padding-left: 200px; padding-top:10px; padding-bottom:10px; border-top: 1px solid red;">
					<jsp:include page="/pager/pager.jsp">
						<jsp:param value="list" name="url"/>
						<jsp:param value="${users.total}" name="items"/>
					</jsp:include>
				</td>
			</tr>
		</tbody>
	</table>
</body>
</html>